home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 064 (1990-02)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 064 (1990-02)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / cclib / include / stdlib.h < prev    next >
C/C++ Source or Header  |  1990-02-14  |  1KB  |  55 lines

  1. #ifndef STDLIB_H
  2. #define STDLIB_H 1
  3.  
  4.  
  5. #define EXIT_SUCCESS 0L
  6. #define EXIT_FAILURE 20L
  7.  
  8. #ifdef ANSIC
  9.  
  10. double atof(char *);
  11. short atoi(char *);
  12. long atol(char *);
  13. void *malloc(unsigned long);
  14. void *calloc(unsigned long, unsigned long);
  15. void *realloc(void *,unsigned long);
  16. void free(void *);
  17. void exit(long);
  18. extern void (*exit_fcn)(void);
  19. void qsort(void *,unsigned long,unsigned long,short (*)(void *,void *));
  20.  
  21. #else
  22.  
  23. double atof();
  24. short atoi();
  25. long atol();
  26. void *malloc();
  27. void *calloc();
  28. void *realloc();
  29. void free();
  30. void exit();
  31. extern void (*exit_fcn)();
  32. void qsort();
  33.  
  34. #endif
  35.  
  36. #define abs(X) (((X) < 0) ? -(X) : (X))
  37. #define lbs(X) (((X) < 0) ? -(X) : (X))
  38. #define atexit(FUNC) (exit_fcn = (FUNC))
  39. #define system(COMMAND) (Execute(COMMAND,0L,0L))
  40. #define abort() (exit(EXIT_FAILURE))
  41.  
  42. /*------------------------ TBD -----------------------------------
  43.  * double strtod(char *, char **);
  44.  * long strtol(char *, char **, int);
  45.  * unsigned long strtoul(char *,char **,int);
  46.  * int rand();
  47.  * void srand();
  48.  * void *bsearch(void *,void *,long,long, int (*)(void *, void *);
  49.  * div_t div(int,int);
  50.  * ldiv_t ldiv(long, long);
  51.  *-----------------------------------------------------------------*/
  52.  
  53. #endif
  54.  
  55.